# 循环输出十行十列 ※
n = 0
res = ''
# while n < 10:
#     res = ''
#     for i in range(0, 11):
#         if i == 10:
#             print(res)
#             continue
#         res += '※'
#     n += 1

# 隔行换色
# while n < 10:
#     res = ''
#     for i in range(0, 11):
#         if i == 10:
#             print(res)
#             continue
#         if n % 2 == 0:
#             res += '※'
#         else:
#             res += '♥'
#     n += 1

# 隔列换色
# while n < 10:
#     res = ''
#     for i in range(0, 11):
#         if i == 10:
#             print(res)
#             continue
#         if i % 2 == 0:
#             res += '※'
#         else:
#             res += '♥'
#     n += 1

# 隔行隔列换色
# while n < 10:
#     res = ''
#     for i in range(0, 11):
#         if i == 10:
#             print(res)
#             continue
#         if n % 2 == 0 and i % 2 == 0:
#             res += '♥'
#         elif n % 2 != 0 and i % 2 == 0:
#             res += '※'
#         elif n % 2 == 0 and i % 2 != 0:
#             res += '※'
#         else:
#             res += '♥'
#     n += 1

# while n < 100:
#     print(n, end='/')
#     n += 1

# 输出三角形
# x = 0
# y = 0
# z = 0
# while x < 4:
#     y = 3-x
#     z = 0
#     while y > 0:
#         print(' ', end=' ')
#         y -= 1
#     y = 3-x
#     while z < (2*x + 1):
#         print('⭐', end=' ')
#         z += 1
#     while y > 0:
#         print(' ', end=' ')
#         y -= 1
#     print()
#     x += 1

# 输出菱形
n = input('请输入菱形边长的一半：')
hn = int(n) + 1 # 4
n = 2*int(n)+1 # 7
m = n # 7
while n > 0:
    if n >= hn:
        q = n - hn
    else:
        q = hn - n
    p = m - 2*q
    r = q
    while r > 0:
        print(' ', end=' ')
        r -= 1
    r = q
    while p > 0:
        print('*', end=' ')
        p -= 1
    while r > 0:
        print(' ', end=' ')
        r -= 1
    print()
    n -= 1


